requirejs.config({
    baseUrl : '/js/lib',

    paths : {
        app : "/js/app",
        activity : "/js/activity"
    }
});

require(["jquery"], function($) {

    function initMobile() {
        require(["app/gnomus"], function(gnomus) {
            gnomus.init();
        });
    }

    $(window.document).bind("mobileinit", initMobile);

    require(["jquery.mobile"], null);
});